Problems, Workarounds and Possible Solutions Implementing the Singleton Pattern with C++ and OpenMP

نویسندگان

  • Michael Süß
  • Claudia Fohry
چکیده

Programs written in C++ and OpenMP are still relatively rare. This paper shows some problems with the current state of the OpenMP specification regarding C++. We illustrate the problems with various implementations of the singleton pattern, measure their performance and describe workarounds and possible changes to the specification. The singletons are available in the AthenaMP open-source project.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Implementing Data-Parallel Patterns for Shared Memory with OpenMP

AthenaMP1 is an open-source parallel pattern library in C++ and OpenMP that is currently under development. This paper reports on the implementations of several data-parallel patterns: modify each, transmute, combine, reduce, and filter. We describe the patterns as well as our experiences implementing them in C++ and OpenMP. The results of two benchmarks showing no performance losses when compa...

متن کامل

Problems Associated with the Use of Communicative Language Teaching in EFL Contexts and Possible Solutions

If the target of foreign language teaching is to use the language, communicative language teaching (CLT) seems to be an ideal teaching model. The goal of teaching with this method is to use the language as a medium of communication (Adi, 2012).The application of the communicative approach in teaching English as a foreign language, however, is associated with some problems that can cause the met...

متن کامل

طراحی و اجرای الگوی مدیریت یکپارچه مواد زاید جامد شهرک‌های صنعتی، مطالعه موردی شهرک صنعتی شاهرود

Background & Objectives: The aim of the study was to design and implement integrated solid wastes management pattern in Shahroud industrial area, to evaluate the results, and to determine possible performance problems. Materials & Methods: This cross - sectional study was carried out for 4 years in Shahroud industrial area and the implementation process included: 1. qualitative and quantitati...

متن کامل

A Novel Method for Implementing of Time-of-use to Improve the Performance of Electric Distribution Systems: A Case Study

Increased electric energy consumption in recent years, associated economic problems, reduced reliability and increased power losses in electric networks. One of the main solutions in smart grids to overcome the mentioned problems is demand response programs. In demand response programs, operators apply time-varying tariffs to consumers, and convince them to change their consumption pattern. Amo...

متن کامل

Problems Associated with the Use of Communicative Language Teaching in EFL Contexts and Possible Solutions

If the target of foreign language teaching is to use the language, communicative language teaching (CLT) seems to be an ideal teaching model. The goal of teaching with this method is to use the language as a medium of communication (Adi, 2012).The application of the communicative approach in teaching English as a foreign language, however, is associated with some problems that can cause the met...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007